package com.example.controller;

import com.example.services.ServicesTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class ControllerTest2 {

	private static Logger log = LoggerFactory.getLogger(ControllerTest2.class);

	@Autowired
	private ServicesTest servicesTest;


	@RequestMapping("/test2")
	@ResponseBody
	public String index2(){

		String test = servicesTest.getStr2();

		log.info(test);

		return test;
	}



















}
